home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_11_1986_Transactor_Publishing.d64
/
inpn & inpa
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
126 lines
0 rem inpa & inpn (w.happ, 1985) :
1 :
2 rem 2 statements, 0 functions
3 :
4 rem keyword characters: 8
5 :
6 rem keyword routine line ser #
7 rem s/inpa npa 10218 143
8 rem s/inpn npn 10224 144
9 :
10 rem=================================
11 :
142 .asc "inp[193]inp[206]"
1442 .word npa-1,npn-1
3478 inl2 jsr $ad8f
3480 sta $49
3482 sty $4a
3484 lda $7a
3486 ldy $7b
3488 sta $4b
3490 sty $4c
3492 ldx $43
3494 ldy $44
3496 stx $7a
3498 sty $7b
3500 jsr $73
3502 lda #0
3504 sta $07
3506 sta $08
3508 lda $7a
3510 ldy $7b
3512 jsr $b48d
3514 jsr $b7e2
3516 jsr $a9da
3518 lda $4b
3520 ldy $4c
3522 sta $7a
3524 sty $7b
3526 rts
3528 ;
10218 npa lda #"["
10220 .byte $2c
10222 ;
10224 npn lda #":"
10226 sta t2
10228 jsr $79
10230 bne np1
10232 jmp $af08
10234 np1 cmp #$22
10236 bne np2
10238 jsr $aebd
10240 lda #";"
10242 jsr $aeff
10244 jsr $ab21
10246 np2 jsr $b3a6
10248 lda #","
10250 sta $01ff
10252 ldx #0
10254 stx t3
10256 stx $11
10258 np3 lda #$a4
10260 jsr $ffd2
10262 np4 jsr $ffe4
10264 cmp #$0d
10266 beq np8
10268 cmp #$14
10270 beq np7
10272 cmp #$20
10274 beq np6
10276 cmp #"."
10278 beq np6
10280 cmp #"+"
10282 beq np6
10284 cmp #"-"
10286 beq np6
10288 ldx t2
10290 cpx #"["
10292 bne np5
10294 cmp #"[193]"
10296 bcc np5
10298 cmp #$db
10300 bcc np6
10302 np5 cmp #"0"
10304 bcc np4
10306 cmp t2
10308 bcs np4
10310 np6 ldx $d3
10312 cpx #$4f
10314 bcs np4
10316 pha
10318 lda #$9d
10320 jsr $ffd2
10322 pla
10324 jsr $ffd2
10326 ldx t3
10328 sta $0200,x
10330 inc t3
10332 bne np3
10334 np7 ldx t3
10336 beq np4
10338 jsr $ffd2
10340 jsr $ffd2
10342 dec t3
10344 bpl np3
10346 np8 lda #$14
10348 jsr $ffd2
10350 ldx t3
10352 jsr $aaca
10354 stx $43
10356 sty $44
10358 ldx t3
10360 bne np9
10362 jmp $abf3
10364 np9 jsr $b08b
10366 pha
10368 jsr $79
10370 beq np10
10372 jmp $af08
10374 np10 pla
10376 ldx t2
10378 cpx #"["
10380 bne np11
10382 jmp inl2
10384 np11 jmp $ac18
10386 ;